﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using HHL_BusAcc.BussinessObject;
using HHL_Util;

namespace HHL_Acc
{
    public partial class PhieuXuatKho : Form
    {
        public PhieuXuatKho()
        {
            InitializeComponent();


            ColumnItem stt = new ColumnItem("Idx", "STT", 100);
            ColumnItem soPhieu = new ColumnItem("ImpNumber", "Phiếu Nhập", 100);
            ColumnItem nam = new ColumnItem("IssueYear", "Năm", 100);
            ColumnItem nguoiNhap = new ColumnItem("ImpNameUnicode", "Người nhập", 250);
            ColumnItem loaiNhap = new ColumnItem("ImpMethodNameUnicode", "Loại Nhập", 250);


            List<ColumnItem> columnItemsList = new List<ColumnItem>();
            columnItemsList.Add(stt);
            columnItemsList.Add(soPhieu);
            columnItemsList.Add(nam);
            columnItemsList.Add(nguoiNhap);
            columnItemsList.Add(loaiNhap);
            CommonUtil.CreateColumns(ref dataGridView1, columnItemsList);

            SmiImportsBus bus = new SmiImportsBus();
            dataGridView1.DataSource = bus.GetListSmiImportL();

            //columnItems.Add(a);
            // class1.CreateColumns(ref dataGridView1, columnItems);
            //   dataGridView1 = class1.Gv;
        }
    }
}
